package cn.jantd.modules.system.vo;

import cn.jantd.core.poi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 团队管理表
 * </p>
 *
 * @Author xiagf
 * @since 2018-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysTeamVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.UUID)
    private String id;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamPlayer() {
        return teamPlayer;
    }

    public void setTeamPlayer(String teamPlayer) {
        this.teamPlayer = teamPlayer;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTeamPlayerName() {
        return teamPlayerName;
    }

    public void setTeamPlayerName(String teamPlayerName) {
        this.teamPlayerName = teamPlayerName;
    }

    public List getTeamPlayerList() {
        return teamPlayerList;
    }

    public void setTeamPlayerList(List teamPlayerList) {
        this.teamPlayerList = teamPlayerList;
    }

    public String getTeamPlayerId() {
        return teamPlayerId;
    }

    public void setTeamPlayerId(String teamPlayerId) {
        this.teamPlayerId = teamPlayerId;
    }
    /**
     * 团队名称
     */
    @Excel(name="团队名称",width=15)
    private String teamName;

    /**
     * 团队成员
     */
    @Excel(name="团队成员",width=15)
    private String teamPlayer;

    //团队成员名

    private String teamPlayerName;

    //团队成员集合
    @TableField(exist = false)
    private List teamPlayerList;

    //团队成员id

    private String teamPlayerId;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getTeamRolename() {
        return teamRolename;
    }

    public void setTeamRolename(String teamRolename) {
        this.teamRolename = teamRolename;
    }

    /*团队角色名称*/
    private String teamRolename;

    /*用户名称*/
    private String username;

    public String getRelUserName() {
        return relUserName;
    }

    public void setRelUserName(String relUserName) {
        this.relUserName = relUserName;
    }

    /*用户真实姓名*/
    private String relUserName;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
